package com.vc.videosdk.interfaces

/**

 * @Author : wy

 * @Time : On 2024/9/26 11:35

 * @Description : VcStreamListener

 */
interface VcStreamListener {
    //信令服务器Nats连接失败
    fun onDisConnected( peerName:String)
    //鉴权状态回调
    fun onAuthResult( peerName:String,  code:Int,  descriptions:String)
    //音视频通道连接成功时
    fun onIceConnected(peerName:String)
    //异常断开,回调给调用方处理
    fun onAbnormalDisconnected()

    /**视频流信息
     * frameWidth: 视频宽
     * frameHeight:视频高
     * frameRate:帧率-每秒接收的帧数
     * delay:延迟
     * receivePerSecond:视频流每秒接收的数据,单位:KB
     * packetLossRate:丢包率
     */
    fun streamInfo(
        frameWidth: Int?,
        frameHeight: Int?,
        frameRate: String?,
        delay: Float,
        receivePerSecond: Int,
        packetLossRate: Double
    )

}